//
//  DataBaseManager.h
//  RetailConnect
//
//  Created by AonePOS on 24/09/13.
//  Copyright (c) 2013 AonePOS. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <sqlite3.h>
@interface DataBaseManager : NSObject
{
	NSString* _dataBasePath;
	sqlite3 *_database;
	BOOL copyDb;
    NSString* dbName;
    int numberOfRows;
    NSMutableArray *rowCount;
}
@property(nonatomic,assign) int numberOfRows;
@property(nonatomic,retain) NSMutableArray *rowCount;
+(DataBaseManager*)dataBaseManager;
-(void)openDatabase;
-(void)dataBaseStatementStart;
-(void)databasestatementEnd;
-(BOOL)execute:(NSString*)sqlQuery resultsArray:(NSMutableArray*)dataTable;

//-(BOOL)insertImage:(NSMutableDictionary*)profile;
//-(NSData*)getImageDataForConatactId:(NSString*)contact_id with_modTime:(NSMutableDictionary *) modifiedTime;
-(BOOL) executeRecordsWithQuery:(NSString *) sqlQuery withArguments:(NSMutableArray *) values;

@end
